package testjeu;

import org.newdawn.slick.Animation;

public class Ennemis extends Jeu {

    protected int x;
    protected int y;
    protected int angle;
    
    protected boolean enVie=true;
    
    protected Animation destruction;
    
    public Ennemis(int col, int lig, int angle) {
        this.x=col;
        this.y=lig;
        this.angle=angle;
    }
    
    public Ennemis(int col, int lig) {
        this.x=col;
        this.y=lig;
        this.angle=0;
    }
    
    public void détruire() {
        enVie=false;
    }
    
    public boolean estEnVie() {
        return enVie;
    }
    
    public void reset() {
        enVie=true;
    }
    
    public int x() {
        return cases.colToPxl(x);
    }
    
    public int y() {
        return cases.ligToPxl(y);
    }
    
    public int col() {
        return x;
    }
    
    public int lig() {
        return y;
    }
    
    public int angle() {
    	return angle;
    }
    
}
